package cn.edu.lingnan.association.servlet;

import java.io.IOException;
import java.util.Vector;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

import cn.edu.lingnan.association.dao.UserDAO;
import cn.edu.lingnan.association.dto.User;

public class DeleteUserServlet extends HttpServlet {


	protected void doGet(HttpServletRequest req, HttpServletResponse resp)
			throws ServletException, IOException {
		
//		//1
//		String uid = req.getParameter("uid");
//		//2
//		User u = new User();
//		UserDAO ud = new UserDAO();
//		u.setuId(uid);
//		boolean flag = ud.deleteUser(u);
//		Vector<User> v = ud.findAllUser();
//		 HttpSession s = req.getSession();
//		 s.setAttribute("allUser",v);
//		//3
//		
//		if(flag){
//			resp.sendRedirect(req.getContextPath()+"/admin/allUser.jsp");
//		}else{
//			resp.sendRedirect(req.getContextPath()+"/error.html");
//		}
		
	}

	
}
